package Modele;

public class Pair<T, S>
{
	/**
	 * Constructeur de la classe Pair
	 * @param f
	 * @param s
	 */
  public Pair(T f, S s)
  { 
    first = f;
    second = s;   
  }

  /**
   * Retourne le premier element de Pair
   * @return
   */
  public T fst()
  {
    return first;
  }

  /**
   * Retroune le second element de Pair
   * @return
   */
  public S snd() 
  {
    return second;
  }

  /**
   * Methode toString
   */
  public String toString()
  { 
    return "(" + first.toString() + ", " + second.toString() + ")"; 
  }

  private T first;
  private S second;
}
